<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%@ include file="static_res.jsp"%>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>

<script>
	$(function(){
	    var base = "<%=path%>";
        var code = "${tip}";

		switch (code) {
		
		case "1":
			alert("注册成功，点击跳转登录界面");
			location.href=base+"/login";
			break;

		case "2":
			alert("注册失败，点击跳转注册界面");
			location.href=base+"/register";
			break;

        case "6":
            alert("发起文章成功");
            location.href=base+"/article/articleInfo";
            break;
        case "5":
            alert("发起活动成功");
            location.href=base+"/article/articleInfo";
            break;
        case "7":
            alert("完善资料成功");
            location.href=base+"/article/mainData";
            break;
		}
	});
</script>
</head>
<body>

</body>
</html>